package com.lanyou.cook.camel;

import org.apache.camel.component.file.GenericFile;
import org.apache.camel.component.file.GenericFileFilter;

public class FileFirstFilter<T> implements  GenericFileFilter<T>{

	@Override
	public boolean accept(GenericFile<T> file) {
		
		//System.out.println("文件名称: " + file.getFileName() + "文件大小: " + file.getFileLength() );
		return file.getFileName().startsWith("helloword");
	}

}
